x86/pvh: change epte_get_entry_emt() for pvh mem types
authorMukesh Rathor <mukesh.rathor@oracle.com>
Mon, 25 Nov 2013 10:20:06 +0000 (11:20 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 25 Nov 2013 10:20:06 +0000 (11:20 +0100)
commite439e0b289e3590f84836e4f9bbdfa560c7af6ef
tree3e6417ae9039e7966f638c5a79f49497ef13e362
parent7d8b5dd98463524686bdee8b973b53c00c232122
x86/pvh: change epte_get_entry_emt() for pvh mem types

For pvh guests, epte_get_entry_emt() is incorrectly returning WB for
all mem types because of the following check:
    if ( !v->domain->arch.hvm_domain.params[HVM_PARAM_IDENT_PT] )
Skip the check for pvh guests.

Also note, MTRR ranges are not maintained for pvh, and a solution is
being contrived using PAT.

Signed-off-by: Mukesh Rathor <mukesh.rathor@oracle.com>
Reviewed-off-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/mtrr.c